package com.jy.rhin.model.body.banqianxinxi;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/***
 * 搬迁信息
 */
@Data
public class BanQianXX {
    //迁入时间
    @XPath(path = "/entry/observation/effectiveTime/low/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_029_00, nullable = true))
    String qianRuSJ;
    //迁出时间
    @XPath(path = "/entry/observation/effectiveTime/high/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_027_00, nullable = true))
    String qianChuSJ;
    //迁出原因
    @XPath(path = "/entry/observation/entryRelationship/observation/code[@code='DE02.01.028.00']/../value/text()"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_028_00, nullable = true))
    String qianChuYY;
}
